/*
 * processingApi  模块api
 * */
let pieAuth = piecloud ? piecloud : "";
console.log("pieauth", pieAuth);

export default {
     webSocketUrl: pieAuth + "/sthx_server/task/ws",
     //processing
     queryLatest: pieAuth + "/sthx_server/task/taskDetails/api/v1/queryLatest",
     query: pieAuth + '/sthx_server/task/taskDetails/api/v1/query',
     systemQuery: pieAuth + '/sthx_server/system/productLine/api/v1/query', //重新修改处理加工生产线弹窗 //queryInfo
     queryInfo: pieAuth + '/sthx_server/task/taskDetails/api/v1/queryInfo',
     updateTask: pieAuth + "/sthx_server/task/taskDetails/api/update/",
     downLoad: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/",
     isExit: pieAuth + '/sthx_server/system/fileInfo/api/isExit', //+ "/file/system/manage/api/v1/resource/isExit", //判断文件是否可以下载
     delete: pieAuth + "/sthx_server/task/taskDetails/api/v1/delete/", //删除子任务
     search: pieAuth + '/coordinator/metadata/workflow/search',
     queryByTaskDetailId: pieAuth + "/sthx_server/product/taskDetailResult/queryByTaskDetailId/", //根据子任务id和产品结果类型查询任务结果
     taskDetailResult: pieAuth + "/sthx_server/product/taskDetailResult/query/", //根据主任务id和产品结果类型查询任务结果
     downloadReport: pieAuth + "/sthx_server/product/taskDetailResult/downloadReport?paths=",
     childTaskWorkFlow: pieAuth + '/coordinator/workflow/',

     //fileManage
     getFileTree: pieAuth + "/file/system/manage/api/v1/resource/getFileTree", //下载文件的文件组织机构树
     getCatalogList: pieAuth + "/file/system/manage/api/v1/resource/list",
     createFile: pieAuth + '/file/system/manage/api/v1/resource/createFile',
     createFolder: pieAuth + "/file/system/manage/api/v1/resource/createFolder",
     fileDelete: pieAuth + "/file/system/manage/api/v1/resource/delete", //delete: pieAuth + "/file/system/manage/api/v1/resource/delete",
     doCheckBefore: pieAuth + '/file/system/manage/api/v1/resource/doCheckBefore',
     operate: pieAuth + "/file/system/manage/api/v1/resource/operate", //移动&复制
     rename: pieAuth + "/file/system/manage/api/v1/resource/rename/",
     unCompress: pieAuth + "/file/system/manage/api/v1/resource/unCompress",
     compress: pieAuth + '/file/system/manage/api/v1/resource/compress',
     getDownLoadKey: pieAuth + "/file/system/manage/api/v1/resource/getDownLoadKey",
     download: pieAuth + "/file/system/manage/api/v1/resource/download",
     upload: pieAuth + "/file/system/manage/api/v1/resource/upload",
     //pushTask
     source: pieAuth + "/sthx_server/task/api/taskSource/query",
     fileRootPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getRootDir/", //根目录获取
     getFileListByPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getFileListByPath", //子文件浏览接口
     create: pieAuth + "/sthx_server/task/api/autoTask/create",
     updateTuiSong: pieAuth + "/sthx_server/task/api/autoTask/update/",


     getAllChildByDictCode: pieAuth + '/sthx_server/system/dict/api/getAllChildByDictCode',
     getTree: pieAuth + "/dev/account/api/enterprise/getEnterTree",
     queryAllUser: pieAuth + '/dev/account/api/sys/user/queryAllUser',
     update: pieAuth + "/sthx_server/task/api/autoTask/update",
     browserRefPath: pieAuth + "/sthx_server/system/fileInfo/api/v1/getCoordinateSystem", //空间参考浏览接口
     getParam: pieAuth + "/sthx_server/task/autoFlowParameters/search",
     updateDefalut: pieAuth + "/sthx_server/task/autoFlowParameters",
     autoTaskDelete: pieAuth + "/sthx_server/task/api/autoTask/delete", //delete: pieAuth + "/sthx_server/task/api/autoTask/delete",
     organization: pieAuth + "/dev/account/api/organization", //getTree: pieAuth + "/dev/account/api/organization",
     autoTaskQuery: pieAuth + "/sthx_server/task/api/autoTask/query", //query: pieAuth + "/sthx_server/task/api/autoTask/query",
     searchProcessParameters: pieAuth + "/sthx_server/task/processParameters/search",
     productLineQuery: pieAuth + '/coordinator/metadata/workflow/',
     groupTree: pieAuth + "/coordinator/metadata/workflow/groupTree",
     queryFeature: pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByQueryParameter',
     queryFeatureBase64:pieAuth + '/api/v3/dataEngine/featureCollection/queryFeatureByCompose',
     readShp: pieAuth + "/sthx_server/product/vectorData/readShp",
     queryRegionClassifyType: pieAuth + "/sthx_server/product/taskProduct/queryAreaType",
     getDir: pieAuth + '/sthx_server/system/fileInfo/api/v1/getDir/',
     dirCreate: pieAuth + '/sthx_server/system/fileInfo/api/v1/dir/create', //createFolder: pieAuth + '/sthx_server/system/fileInfo/api/v1/dir/create',
     loopUpGraph: pieAuth + '/coordinator/metadata/workflow/',
     queryProcessLabels: pieAuth + '/sthx_server/system/productLine/api/v1/queryMyLabels', //查询流程属性
     submitTask: pieAuth + "/sthx_server/task/taskInfo/api/v1/create", //任务提交
     getDemType: pieAuth + "/sthx_server/task/controlImage/getByParentCode",
     updateStatus: pieAuth + '/sthx_server/task/api/autoTask/updateStatus',

     deleteCollections: pieAuth + '/sthx_server/system/userFavorite/delete', //删除收藏文件
     updateCollections: pieAuth + '/sthx_server/system/userFavorite/update',//重命名收藏文件
     collectFiles: pieAuth + '/sthx_server/system/userFavorite/create',//收藏文件

};
